<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      #template {
        display: none;
      }

      [v-cloak] {
        display: none;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <h1 v-cloak>{{visible}}</h1>
    </div>
    <script src="../../../packages/vue/dist/vue.global.js"></script>

    <script>
      const { createApp, ref } = Vue

      const App = {
        setup() {
          const visible = ref(true)
          const setVisible = () => (visible.value = !visible.value)
          return {
            visible,
            'this will not be compiled': 'value',
            setVisible
          }
        },
        el: '#app',
        directives: {
          xx: {}
        }
      }
      setTimeout(() => {
        createApp(App).mount('#app')
      }, 1000)
    </script>
  </body>
</html>
